body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-image: url('https://images.unsplash.com/photo-1551076805-e1869033e561?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    margin: 0;
    padding: 0;
    color: #333;
}

.container {
    max-width: 720px;  /* 页面稍微放宽 */
    margin: 60px auto;
    padding: 40px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    text-align: center;
}

h1 {
    font-size: 30px;
    color: #2f3640;
    margin-bottom: 20px;
}

p {
    font-size: 16px;
    color: #636e72;
}

.upload-box {
    margin: 20px 0;
    background-color: #d0e8ff;
    padding: 20px;
    border-radius: 12px;
}

input[type="file"] {
    display: block;
    margin: 10px auto;
}

button {
    padding: 12px 24px;
    font-size: 16px;
    border: none;
    background-color: #74b9ff;
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.2s ease-in-out;
}

button:hover {
    background-color: #0984e3;
}

#image-preview {
    margin: 20px 0;
    background-color: #d0e8ff;
    padding: 20px;
    border-radius: 12px;
}

#preview {
    width: 100%;  /* 拉满容器宽度 */
    height: auto;  /* 自动保持比例 */
    max-height: 480px;  /* 提高最大高度 */
    border-radius: 10px;
    border: 2px solid #74b9ff;
    object-fit: contain;
}


#result {
    margin-top: 30px;
    text-align: left;
    background-color: #d0e8ff;
    padding: 20px;
    border-radius: 12px;
    font-size: 17px;
    color: #2d3436;
    line-height: 1.7;
}
